<?php

namespace App\Http\Requests\HelpRequests;

use Illuminate\Foundation\Http\FormRequest;

class FeedbackRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'content' => ['required'],
            'picture' => ['nullable'],
        ];
    }

    /**
     * @return array
     */
    public function messages()
    {
        return [
            'content.required' => __('反馈内容必填'),
        ];
    }
}